package com.example.demo.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "com.pojo")
public class UserProperties {
    /**
     * 判断是否生效
    */
    private boolean enable;

    /**
     * 定义着玩
     */
    private String userName;
    public void setEnable(boolean enable1){
        enable=enable1;
    }
    public boolean getEnable(){
        return enable;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}